package com.jevons.muffin.event;

/**
 * Copyright 2020 JxGIS
 *
 * @file LoadingDialogEvent
 * @auth linaisheng
 * Created on 2021/6/30.
 * Description：
 */
public class LoadingDialogEvent implements IActionEvent {

    private boolean isShowing;

    private String message;

    private boolean isCanBack;


    public LoadingDialogEvent() {
        this(true);
    }

    public LoadingDialogEvent(boolean isShowing) {
        this("", true);
        this.isShowing = isShowing;
    }

    public LoadingDialogEvent(String message) {
        this(message, true);
    }

    public LoadingDialogEvent(String message, boolean isCanBack) {
        this.isShowing = true;
        this.message = message;
        this.isCanBack = isCanBack;
    }

    public boolean isShowing() {
        return isShowing;
    }

    public String getMessage() {
        return message;
    }

    public boolean isCanBack() {
        return isCanBack;
    }
}
